import {axios} from './request.js'

//注册 
export const gotoregister=({data})=>{
	return axios({
		url:'/prod-api/api/register',
		method:'post',
		data
	})
}

//登录
export const gotologin=({data})=>{
	return axios({
		url:'/prod-api/api/login',
		method:'post',
		data
	})
}

//获取个人信息
export const getinfo=({header,data})=>{
	return axios({
		url:'/prod-api/api/common/user/getInfo',
		header,
		data
	})
}

//修改个人信息
export const fixinfo=({header,data})=>{
	return axios({
		url:'/prod-api/api/common/user',
		method:'put',
		header,
		data
	})
}

//全部订单
export const getallorder=({header})=>{
	return axios({
		url:'/prod-api/api/allorder/list',
		header,
		data:{}
	})
}
